#ifndef _PWM_H_
#define _PWM_H_
#include <stm32f10x.h>
class pwm_set
{
private:
    /* data */
    static GPIO_InitTypeDef GPIO_InitStructure;
    static TIM_TimeBaseInitTypeDef TIM_InitStructure;
    static TIM_OCInitTypeDef TIM_OCInitStructure;

public:
    static void PWM_init_general(u16 arr, u16 psc);
    static void PWM_GPIO_init(void);
    static void PWM_TIM_init(u16 arr, u16 psc);
    static void PWM_TIM_OCInit(void);
};

#endif